<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('Chart/index')}">滚动图列表</a></li>
        <li><a href="{:url('Chart/add')}">添加滚动图</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="get" action="{:url('Chart/index')}">
        <input type="text" class="form-control" name="selkey" style="width: 120px;"  placeholder="支持id">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('Chart/index')}">清空</a>
    </form>
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
                <th width="50">排序</th>
                <th width="50">ID</th>
                <th>浏览次数</th>
                <th>创建时间</th>
                <th>修改时间</th>
                <th width="50">{:lang('STATUS')}</th>
                <th width="120">{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="list" item="vo">
                <tr>
                        <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value=""></td>
                        <td><input name='' class="input input-order mr5" type='text' size='3' value=''></td>
                        <td>{$vo.id}</td>
                        <td><img src="{$vo.image}" width="100px"></td>
                        <td>{$vo.create_time}</td>
                        <td>{$vo.update_time}</td>
                        <td>
                            <switch name="$vo.switch">
                                <case value="1"><a href="{:url('Chart/show')}?id={$vo.id}" class="js-ajax-dialog-btn" data-msg="是否不展示？"><button type="button" class="btn btn-success">是</button></a></case>
                                <case value="0"><a href="{:url('Chart/show')}?id={$vo.id}" class="js-ajax-dialog-btn" data-msg="是否不展示？"><button type="button" class="btn btn-danger">否</button></a></case>
                            </switch>
                        </td>
                        <td>
                            <a class="btn btn-xs btn-primary" href="{:url('Chart/edit')}?id={$vo.id}">{:lang('EDIT')}</a>
                            <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('Chart/delete')}?id={$vo.id}">{:lang('DELETE')}</a>
                        </td>
                </tr>
                </foreach>
            </tbody>
        </table>
        <div class="pagination">{$list->render()}</div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>